Skip to content

Fix typos and grammar in writing stubs guide i.e writing_stubs.rst#2290

Merged
srittau merged 1 commit into
python:mainfrom
BHUVANSH855:docs/writing_stubs.rst
May 18, 2026
Merged

Fix typos and grammar in writing stubs guide i.e writing_stubs.rst#2290
srittau merged 1 commit into
python:mainfrom
BHUVANSH855:docs/writing_stubs.rst

Conversation

@BHUVANSH855
Copy link
Copy Markdown
Contributor

Fix several typos, grammar issues, and minor wording problems in
docs/guides/writing_stubs.rst.

Changes include:

  • fixing __setattr___ typos
  • correcting grammar issues like "This avoid" → "This avoids"
  • fixing uper()upper()
  • fixing spacing and wording issues

Changes

  • Fixed typo in __setattr__ references
  • Corrected grammar and wording in the "Any trick" section
  • Fixed spacing before punctuation
  • Corrected subject-verb agreement

Testing

  • Documentation changes only

@srittau srittau merged commit 87a2fca into python:main May 18, 2026
5 checks passed
assert match is not None
name_group = match.group(1) # The user knows that this will never be None
name_group.uper() # This typo will be flagged by the type checker
name_group.upper() # This typo will be flagged by the type checker
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this typo was made on purpose

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, restored in #2291.

srittau added a commit that referenced this pull request May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants